package com.dhecp.project.system.controller;

import com.dhecp.common.core.controller.BaseController;
import com.dhecp.common.core.page.TableDataInfo;
import com.dhecp.project.system.domain.Api1688ToKen;
import com.dhecp.project.system.service.Api1688ToKenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
import java.util.Map;

/**
 * @ClassName Api1688Controller
 * @Description TODO
 * @Author alula
 * @Date 2022-09-05 20:05
 */
@Controller
@RequestMapping("/system/1688token")
public class Api1688ToKenController extends BaseController {

    @Autowired
    private Api1688ToKenService api1688ToKenService;

    @GetMapping("/list")
    @ResponseBody
    public TableDataInfo list(@RequestParam Map<String, Object> params){
        startPage();
        List<Api1688ToKen> dataList = api1688ToKenService.queryApi1688ToKenList(params);
        return getDataTable(dataList);
    }
}
